package mirrormonkey.framework;

import mirrormonkey.util.netevent.client.ClientEventManager;

import com.jme3.network.Client;

public class ClientSyncAppState extends SyncAppState<ClientEventManager> {

	public final Client client;

	public ClientSyncAppState(Client client) {
		this(new EntityProvider(), new ClientEventManager(), client);
	}

	public ClientSyncAppState(EntityProvider entityProvider,
			ClientEventManager eventManager, Client client) {
		super(entityProvider, eventManager);
		client.addMessageListener(eventManager.getMessageListener());
		client.addClientStateListener(eventManager.getClientStateListener());
		this.client = client;
	}

	@Override
	protected boolean isCollectLocalConstructors() {
		return true;
	}
}
